/**
 * vue工具类
 * Created by hice on 2017/3/28.
 */
const vueutil = {
  check: {
    isEmpty: (obj) => {
      let name;
      for (name in obj) {
        return false;
      }
      return true;
    }
  },

  //url类方法
  url: {
    addUrlParams: (param, url) => {
      let kv = '';
      for (let key in param) {
        kv += key + '=' + param[key] + '&';
      }
      !!url && url.indexOf('?') >= 0 ? url = url + kv : url = url + '?' + kv
      return url
    }
  },

}
export default vueutil
